package ua.mihaylenko.app.ui.window 
{
	import flash.events.Event;
	
	/**
	 * ...
	 * @author Mihaylenko A.L.
	 */
	public class WindowEvent extends Event 
	{
		static public const WONDOW_CLOSE:String = 'WindowHideAndDisposeCompleteEvent';
		static public const WINDOW_SHOW_COMPLETE:String = 'WindowShowCompleteEvent';
		private var $data:*;
		public function WindowEvent(type:String, oData:*=null, bubbles:Boolean=false, cancelable:Boolean=false) 
		{ 
			super(type, bubbles, cancelable);
			$data = oData;
		} 
		
		public override function clone():Event 
		{ 
			return new WindowEvent(type, $data, bubbles, cancelable);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("WindowEvent", "type", "bubbles", "cancelable", "eventPhase"); 
		}
		public function get data():*{ return $data; }
	}
	
}